<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
    <title th:text="登录"></title>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="WAP游戏,文字游戏,怀旧,mud">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telphone=no,email=no">
    <meta name="misapplication-tap-highlight" content="no">
    <meta name="screen-orientation" content="portrait">
    <meta name="x5-orientation" content="portrait">
    <link rel="stylesheet" type="text/css" th:href="@{/assets/modules/mojie/mojie.css}" />
</head>
<body>
<div class="block-container">
    <div th:if="${session.user != null}" th:object="${session.user}">
        已登陆用户
        <br/>
        <a href="center" th:text="|*{nickName }(*{userID})|">用户名</a>
        <br/>
        账户操作
        <br/>
        <a href="javascript:void(0);">切换账号</a>
        <br/>
        <a href="quit">注销登陆</a>
    </div>

    <div th:if="${session.user == null}">
        <form method="post" th:action="@{login}" id="form">
            <div>登录名/uid:</div>
            <div><input type="text" name="loginName" placeholder=""/></div>
            <div>密码:</div>
            <div><input type="password" name="password" placeholder=""/></div>
            <div class="red" th:text="${error.message}" th:if="${error != null && not #strings.isEmpty(error.message)}"></div>
            <a th:href="@{javascript:void(0);}" onclick="document:form.submit();">登陆</a>
            <!--<div><input type="submit" placeholder="" value="登陆"/></div>-->
        </form>
        <div th:if="error == null">
            <div style="color: red;" th:text="${error.message }"></div>
        </div>
        其他操作:
        <br/>
        <a href="register">注册账户</a>
    </div>
</div>
</body>
</html>
